<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <?php echo $this->Html->charset(); ?>
        <title>
            <?php echo $title_for_layout; ?><?php echo Configure::read("Autoconfig.title"); ?>
        </title>
        <?php
            echo $this->Html->meta('icon');
            echo $this->Html->css('default');
            //echo $this->Html->css('cake.generic');
            echo $this->Html->css('blueprint/screen', null, array('media' => "screen, projection"));
            echo $this->Html->css('blueprint/print', null, array('media' => "print"));
            echo "<!--[if lt IE 8]>" . $this->Html->css('blueprint/ie', null, array('media' => "screen, projection")) . "<![endif]-->";
        ?>
            <script type="text/javascript" src="/js/jquery.min.js"></script>
        <?php
            echo $scripts_for_layout;
        ?>
            <?php
            echo $this->element('chatbox/script');
            ?>
        </head>
        <body>
            <div id="header">&nbsp;</div>
            <div class="container">
                <h1>Nowy Insimilion</h1>
                <hr />
                <div class="span-17 prepend-1 colborder">
                <?php echo $this->Session->flash(); ?>
                <?php echo $content_for_layout; ?>
            </div>
            <div class="span-5 last">
                <h3>Menu</h3>
                <ul>
                    <li><a href="/">Strona główna</a></li>
                    <?php
                        if($authorized && $authorizedAsAdmin) {
                            echo('<li><a href="/admin">Panel administracyjny</a></li>');
                        }
                    ?>
                </ul>
                <hr />
                <?php
                echo $this->element('user_panel');
                ?>
                <hr />
                <h3>Chatbox</h3>
                <?php
                echo $this->element('chatbox/chatbox');
                ?>
            </div>
            <hr />
            <p style="text-align: center;">
                <?php echo Configure::read("Autoconfig.footer"); ?>
            </p>
            <hr />&nbsp;<br />&nbsp;<br />&nbsp;<br />&nbsp;
        </div>
        <?php echo $this->element('sql_dump'); ?>
    </body>
</html> 
